import request from '@/utils/request'

// 查询学员信息列表
export function listInformation(id) {
  return request({
    url: '/student/information/list/' + id,
    method: 'get',
  })
}

// 查询学员信息详细
export function getInformation(id) {
  return request({
    url: '/student/information/' + id,
    method: 'get'
  })
}

// 新增学员信息
export function addInformation(data) {
  return request({
    url: '/student/information',
    method: 'post',
    data: data
  })
}

// 修改学员信息
export function updateInformation(data) {
  return request({
    url: '/student/information',
    method: 'put',
    data: data
  })
}

// 删除学员信息
export function delInformation(id) {
  return request({
    url: '/student/information/' + id,
    method: 'delete'
  })
}


// 提交考试结论
export function submitConclusion(studentInformation) {
  return request({
    url: '/student/information/submitConclusion',
    method: 'post',
    data: studentInformation
  })
}

// 得到班级附件信息
export function getInformationClass(classId) {
  return request({
    url: '/student/information/getInformationClass/' + classId,
    method: 'get',
  })
}

// 提交班级附件
export function submitClassInfo(classInfo) {
  return request({
    url: '/student/information/submitClassInfo',
    method: 'post',
    data: classInfo
  })
}


// 提交班级附件
export function confirmTrainisPassAll(classId) {
  return request({
    url: '/student/information/confirmTrainisPassAll/' + classId,
    method: 'get',
  })
}
